//
//  UIViewController+Storyboard.h
//  ManBetX
//
//  Created by Cocoa on 2020/3/31.
//  Copyright © 2020 Fullen. All rights reserved.
//

//#import <AppKit/AppKit.h>

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIViewController (Storyboard)
/**
 *  根据identifier，在bundle的所有storyboard中查找并生成一个实例
 *
 *  不用处理对象是在哪个storyboard文件中。如果没有找到，返回nil
 *
 *  @return instance or nil
 */
+ (nullable instancetype)instanceFromStoryboardWithIdentifier:(nonnull NSString *)identifier;

/**
 *  同 +instanceFromStoryboardWithIdentifier:  identifier为调用的类的类名
 *
 *  @return instance or nil
 */
+ (nullable instancetype)instanceFromStoryboard;
@end

NS_ASSUME_NONNULL_END
